package com.yxq.mdt.app.modules.video.adapter;

import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yxq.mdt.app.R;
import com.yxq.mdt.app.glide.GlideHelper;
import com.yxq.mdt.app.modules.video.bean.ChatListDataBean;

import java.util.List;

public class ChatDataTabAdapter extends BaseQuickAdapter<ChatListDataBean, BaseViewHolder> {
    public ChatDataTabAdapter(int layoutResId, @Nullable List<ChatListDataBean> data) {
        super(layoutResId, data);
    }

    @Override
    public void onBindViewHolder(BaseViewHolder holder, int position) {
        super.onBindViewHolder(holder, position);
    }

    @Override
    protected void convert(BaseViewHolder helper, ChatListDataBean item) {
        ImageView icon = helper.getView(R.id.personal_item_img);
        GlideHelper.load(mContext, item.getImg(), icon);
        helper.setText(R.id.personal_item_text, item.getText());
    }
}
